#pragma once

#include "genresult.h"

struct History
{
    virtual ~History() = default;
    virtual QString text() { return ""; }
    virtual void show(QWidget * = nullptr) {}
};

struct History_Single : public History
{
    History_Single(int min, int max, int result);

    QString text() override;

    int min, max, result;
};

struct History_Multi : public History
{
    History_Multi(int min, int max, int count, bool isNoRepeat, const QVector<int> &result);

    QString text() override;
    void show(QWidget *w = nullptr) override;

    int min, max, count;
    bool isNoRepeat;
    QVector<int> result;
};
